﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace CinemabookingWCFApp.BookingFolder
{
    
    [ServiceContract]
    public interface IBookingService
    {
        [OperationContract]
        List<Booking> GetAllBookings();

        [OperationContract]
        List<Booking> GetBooking(int BookId);

        [OperationContract]
        List<Booking> GetBookingOnPhone(string BookPhone);

        [OperationContract]
        void SaveBooking(string CusName, string CusPhone);

        [OperationContract]
        void DeleteBooking(string CusPhone);

        [OperationContract]
        void UpdateBooking(int BookId, string CusName, string CusPhone);
    }
}
